import numpy as np #给numpy库起别名为np

lst = np.random.randint(0, 101, 10) #随机生成10组0至100的数
# lst = [1, 13, 43, 6, 9, 32, 1, 7, 8]
print(lst)
lst1 = []
num1 = int(input("输入一个整数："))
for i in range(len(lst) - 1):
    for j in range(i+1, len(lst)):
        if num1 == lst[i] + lst[j]:
            print(f"{lst[i]}与{lst[j]}之和为{num1}, 其对应的下标为：{i},{j}")
            # k = (lst[i], lst[j])
            # lst1.append(k)

